<?php

define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');
require(ROOT_PATH . 'includes/lib_order.php');


if($_REQUEST['action'] =='all_addcart')
{

$arr=$_POST['goods_id'];
for ($i= 0;$i< count($arr); $i++){

  $idx= $arr[$i];
  
  if($i==0)
  {
	$parent=$idx;
	addto_cart($idx,1,'','',$content);
  }
  else
  {
    addto_cart($idx,1,'',$parent,$content);
  }

}
	
  ecs_header("Location:./flow.php\n");
  
}
  
?>